package icu.sehnen.service;

import icu.sehnen.dao.MemberStyleDao;
import icu.sehnen.model.MemberStyleModel;

import java.util.ArrayList;
import java.util.List;

public class MemberStyleService {


    public List<MemberStyleModel>getMemberStyleForAbout() {

        MemberStyleDao memberStyleDao=new MemberStyleDao();
        List<MemberStyleModel> memberStyleModelList=new ArrayList<>();
      int length=  memberStyleDao.imgUrls.size();
      for(int i=0;i<length;i++){
          MemberStyleModel memberStyleModel=new MemberStyleModel();
          memberStyleModel.setImgUrl(memberStyleDao.imgUrls.get(i));
         memberStyleModelList.add(memberStyleModel);
      }
      return  memberStyleModelList;
    }
}
